<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="org.ifilm.model.User,org.ifilm.util.GeneralConstants"%>

<%
	//TEST TO CHECK WHETHER LOGGED USER IS IN OUR SESSION OR NOT
	User loggedUser = (User)session.getAttribute(GeneralConstants.user);
	
	if (loggedUser != null) {
		System.out.println(loggedUser.getEmail());
	} else {
		System.out.println("No user in session!");
	}
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Create Job Posting</title>
		</head>
	<body>
		<form method="POST" action="/film/req/notice/createJobNotice">
			<table>
				<tr>
					<td>Title :</td>
					<td><input type="text" name="<%=GeneralConstants.postingTitle%>"><br/></td>
				</tr>
				<tr>
					<td>Film Info : </td>
					<td><textarea name="<%=GeneralConstants.postingFilmInfo%>"></textarea><br/></td>
				</tr>
				<tr>
					<td>Desired Qualifications :</td>
					<td><textarea type="text" name="<%=GeneralConstants.postingDesiredQualifications%>"></textarea><br/></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Submit"></td>
				</tr>
			</table>
		</form>
	</body>
</html>